package com.tarena.lbs.coupon.dao.repository;

import com.tarena.lbs.coupon.dao.mapper.CouponMapper;
import com.tarena.lbs.coupon.pojo.param.CouponParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
@Slf4j
public class CouponRepositoryImpl implements CouponRepository{
    @Autowired
    private CouponMapper couponMapper;

    @Override
    public void saveCoupon(CouponParam couponParam) {
        log.debug("新增优惠券：{}", couponParam);
        couponMapper.saveCoupon(couponParam);
    }
}
